package com.china.juju.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_activity_tag"
    ,catalog="zutuan_prot"
)
public class JujuActivityTag  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuActivityTag";
	public static final String TABLE_NAME="juju_activity_tag";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_activiyid = "activiyid"; 
	public static final String P_tagid = "tagid"; 

     private String id;
     private String activiyid;
     private String tagid;

    public JujuActivityTag() {
    }
	
    public JujuActivityTag(String id) {
        this.id = id;
    }
    public JujuActivityTag(String id, String activiyid, String tagid) {
        this.id = id;
        this.activiyid = activiyid;
        this.tagid = tagid;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="ACTIVIYID", length=36)
    public String getActiviyid() {
        return this.activiyid;
    }
    
    public void setActiviyid(String activiyid) {
        this.activiyid = activiyid;
    }
    
    @Column(name="TAGID", length=36)
    public String getTagid() {
        return this.tagid;
    }
    
    public void setTagid(String tagid) {
        this.tagid = tagid;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


